package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_motion_video")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MotionVideoModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;//标题
    private String videoUrl;//视频url
    private String content;//文本
    private String coverImage;//封面图url
    private Integer type;// 类型 1.视频  2.文章
    private Integer videoType;//视频类型1.大美肃州 2.十大宣传片
//    private Integer township;
    private Integer status;
    private Integer sort;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;

    @TableField(exist = false)
    private String townshipText;
    @TableField(exist = false)
    private String typeText;
}
